package one;

/**
 * 除法类
 */
public class DivOperation extends Operation{
    @Override
    public double getResult() throws Exception {
        double result=0;
        if(getNumber2()==0){
            throw new Exception("被除数不能为0");
        }
        return getNumber1()/getNumber2();
    }
}
